package service;

import entity.Orders;
import entity.Ticket;
import entity.Train;
import untils.Msg;

import java.util.ArrayList;

public interface BuyTicketsService {
    ArrayList<Train> findTickesData(String startStation,String endStation,String time,int carStation);

    Msg<Orders> updateTicketsData(int userId,String phone, Train train, String seatNumber);

    void paymentOk(Orders order);

    void returnTickets(Ticket ticket);

    void rebook(Ticket ticket,String idCard);
}
